<h1>{$forumTitle}</h1>

{$formStart}
    {$search}
    <input type="text" name="search" />
    <input type="submit" value="&raquo;" />
</form>

{assign var='inSub' value=false}
{section name=hall loop=$halls}
    {if $halls[hall].parent == 0}
        {if $inSub}
                </tr>
            </table>
            {assign var='inSub' value=false}
        {/if}
        <h2>
            {if $halls[hall].allowed}<a href="{$halls[hall].link}">{/if}
                {$halls[hall].name}
            {if $halls[hall].allowed}</a>{/if}
        </h2>
        <em>{$halls[hall].description}</em>
    {else}
        {if !$inSub}
            <table class="forum">
                <tr>
            {assign var='index' value=0}
            {assign var='inSub' value=true}
        {/if}
        {if (($index % 2 == 0) && ($index > 0))}
            </tr>
            <tr>
        {/if}
        <td width="220">
            {if $halls[hall].icon}
            {if $halls[hall].allowed}<a href="{$halls[hall].link}">{/if}
                <img src="{image src=$halls[hall].icon width=200 height=120 border=true}" alt="{$halls[hall].name}" />
            {if $halls[hall].allowed}</a>{/if}{/if}</td>
        <td width="240"><h3>
                {if $halls[hall].allowed}<a href="{$halls[hall].link}">{/if}
                    {$halls[hall].name}
                {if $halls[hall].allowed}</a>{/if}</h3>
        <p>{$halls[hall].description}</p></td>
        {assign var='index' value=$index+1}
        {/if}
{/section}
{if $inSub}
    </tr>
</table>
{/if}

{if $allowedCreateHall}
<a href="{$createHallLink}">{$createHall}</a>
{/if}